package com.yang.sms.entity;


import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 短信发送记录
 * @TableName sms_record
 */
@TableName(value ="sms_record")
@Data
public class SmsRecord implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送渠道(log:打印日志（测试）,ali:阿里云,tencent:腾讯云)
     */
    @TableField(value = "channel")
    private String channel;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 短信签名(2~12个字符)，如：【XX公司】，【】不用填写
     */
    @TableField(value = "sign_name")
    private String signName;

    /**
     * 模板编码
     */
    @TableField(value = "template_code")
    private String templateCode;

    /**
     * 模板参数json
     */
    @TableField(value = "template_param_json")
    private String templateParamJson;

    /**
     * 短信内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 结果(success:成功,fail:失败)
     */
    @TableField(value = "result")
    private String result;

    /**
     * 信息
     */
    @TableField(value = "message")
    private String message;

    /**
     * 请求ID
     */
    @TableField(value = "request_id")
    private String requestId;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}